import styled from 'styled-components'

export const ArticleItemWrapper = styled.article`
  padding: 30px;
  box-sizing: border-box;
  border-radius: 5px;
  position: relative;
  margin-top: 20px;
  margin-bottom: 60px;
  :last-child {
    margin-bottom: 0;
  }
  .title {
    a {
      transition: 0.3s ease;
      text-decoration: none;
      color: #444;
      display: inline-block;
      :hover {
        transform: scale(1.05);
      }
    }
  }
  .detail {
    .up-date {
      .date-timer {
        color: #00a7e0;
      }
    }
  }
  .read-all {
    padding-top: 30px;
    a {
      transition: 0.3s ease;
      text-decoration: none;
      color: #fff;
      font-size: 13px;
      background: #97dffd;
      padding: 5px 15px;
      box-sizing: border-box;
      border-radius: 5px;
      border: none;
      display: inline-block;
      :hover {
        font-size: 13px;
        transform: scale(1.05);
      }
    }
  }
  .content {
    padding-top: 30px;
    word-break: break-all;
  }
  .post-date {
    background-color: #97dffd;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    position: absolute;
    top: -35px;
    left: -35px;
    height: 70px;
    width: 70px;
    padding-top: 13px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 1.1;
    .post-day {
      padding-top: 3px;
      font-size: 23px;
      font-weight: 700;
    }
  }
  .post-badge {
    position: absolute;
    left: -16px;
    top: 95px;
    border-color: #47456d;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    background-color: #97dffd;
    margin: 5px 0 15px 2px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    display: inline-block;
    padding: 7px 11px 7px 32px;
    line-height: 1;
    cursor: pointer;
    :after {
      position: absolute;
      content: '';
      top: 100%;
      left: 0;
      border-top: 0 solid transparent;
      border-right-width: 1em;
      border-right-color: inherit;
      border-right-style: solid;
      border-bottom: 1em solid transparent;
      border-left: 0 solid transparent;
      width: 0;
      height: 0;
    }
  }
`
